﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ManageSell-OutStockExcelUploadV2.aspx.vb"
    Inherits="WebForm_ManageSell_OutStockExcelUploadV2" MasterPageFile="~/WebForm/MasterPage.master" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <table width="98%" align="Center">
        <tr>
            <td align="center">
                <asp:Label ID="lblPage" runat="server" SkinID="title" meta:resourcekey="lblPage"></asp:Label>
            </td>
        </tr>
    </table>
    <div style="background-color: #351D26">
        <table width="100%" align="Center">
            <tr>
                <td align="left">
                    <fieldset align="left" style="border-color: #4E333B;">
                        <legend>
                            <asp:Label ID="lblExcelUpdate" runat="server" meta:resourcekey="lblExcelUpdate"></asp:Label>
                        </legend>
                        <table>
                            <tr>
                                <td align="left">
                                    <asp:Label ID="lblType" runat="server" meta:resourcekey="lblType"></asp:Label>
                                    <asp:DropDownList ID="ddlType" runat="server" AutoPostBack="true">
                                    </asp:DropDownList>&nbsp;&nbsp;
                                    <asp:Label ID="lblYMonth" runat="server" meta:resourcekey="lblYMonth" Visible="false"></asp:Label>
                                    <asp:DropDownList ID="ddlYMonth" runat="server" Visible="false">
                                    </asp:DropDownList>&nbsp;&nbsp;
                                    <asp:Label ID="lblDivision" runat="server" meta:resourcekey="lblDivision"></asp:Label>
                                    <asp:DropDownList ID="ddlDivision" runat="server" AutoPostBack="true">
                                    </asp:DropDownList>
                                    &nbsp;&nbsp;
                                    <asp:Label ID="lblCustomerGroup" runat="server" meta:resourcekey="lblCustomerGroup"></asp:Label>
                                    <asp:DropDownList ID="ddlCustomerGroup" runat="server">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <asp:Label ID="lblFile" runat="server" meta:resourcekey="lblFile"></asp:Label>
                                    <asp:FileUpload ID="FileUpload1" runat="server" />
                                    <asp:Button ID="btnUpload" CssClass="button" runat="server" meta:resourcekey="btnUpload"
                                        ValidationGroup="vsSSupload" />
                                    <asp:RequiredFieldValidator ID="rfvType" runat="server" meta:resourcekey="rfvType" SetFocusOnError="true" 
                                    ValidationGroup="vsSSupload" ControlToValidate="ddlType" Display="None"></asp:RequiredFieldValidator>
                                       <asp:RequiredFieldValidator ID="rfvDivision" runat="server" meta:resourcekey="rfvDivision" SetFocusOnError="true" 
                                    ValidationGroup="vsSSupload" ControlToValidate="ddlDivision" Display="None"></asp:RequiredFieldValidator>
                                       <asp:RequiredFieldValidator ID="rfvCustomerGroup" runat="server" meta:resourcekey="rfvCustomerGroup" SetFocusOnError="true" 
                                    ValidationGroup="vsSSupload" ControlToValidate="ddlCustomerGroup" Display="None"></asp:RequiredFieldValidator>
                                   <asp:ValidationSummary ID="vs1" runat="server" ShowMessageBox="true" ShowSummary ="false" ValidationGroup="vsSSupload" />

                                    <%--                                  <asp:HyperLink ID="hlinklExcelUpdate" Font-Size="12px" meta:resourcekey="hlinklExcelUpdate" runat="server"></asp:HyperLink>
--%>
                                </td>
                            </tr>
                            <div runat="server" id="divMatch">
                                <tr>
                                    <td align="left">
                                        <asp:Label ID="lblDataSource" runat="server" Text="Data Source："></asp:Label>
                                        <asp:Label ID="lblFileName" ForeColor="green" runat="server"></asp:Label>
                                        <br />
                                        <asp:Label ID="lblColMatch" runat="server" meta:resourcekey="lblColMatch"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <My:MyGridView ID="gvMatch" runat="server" SkinID="pager" AllowHoverSelect="false">
                                            <Columns>
                                                <asp:TemplateField HeaderText="No.">
                                                    <itemtemplate>
                                       <%#gvMatch.PageIndex * gvMatch.PageSize + gvMatch.Rows.Count + 1%>
                                       </itemtemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="ColumnName" meta:resourcekey="bfColumnName" />
                                                <asp:TemplateField meta:resourcekey="bfFileColumnName">
                                                    <itemtemplate>
                                            <asp:DropDownList ID="ddlFileColumnName" runat="server"></asp:DropDownList>
                                        </itemtemplate>
                                                    <itemstyle horizontalalign="Center" />
                                                    <headerstyle horizontalalign="Center" />
                                                </asp:TemplateField>
                                            </Columns>
                                        </My:MyGridView>
                                    </td>
                                </tr>
                                <tr id="Tr1" runat="server">
                                    <td align="center" colspan="2">
                                        <asp:Button ID="btnSent" ValidationGroup="vsSSupload" CssClass="button" SkinID="button"
                                            runat="server" meta:resourcekey="btnSent" />
                                        <ajaxToolkit:ConfirmButtonExtender ID="cbeUpload" runat="server" TargetControlID="btnSent"
                                            meta:resourcekey="cbeUpload">
                                        </ajaxToolkit:ConfirmButtonExtender>
                                    </td>
                                </tr>
                            </div>
                        </table>
                    </fieldset>
                </td>
            </tr>
            <tr>
                <td>
                    <fieldset id="FIELDSET1" style="border-color: #4E333B" runat="server">
                        <legend class="white2">
                            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:plUpdateErrorMessage.GroupingText%>" />
                        </legend>
                        <asp:Panel ID="pl" runat="server" ScrollBars="Auto" Width="900px">
                            <table>
                                <tr>
                                    <td align="center">
                                        <My:MyGridView ID="gv" SkinID="pager" runat="server" AutoGenerateColumns="true" AllowPaging="true"
                                            meta:resourcekey="gv">
                                        </My:MyGridView>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </fieldset>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
